import { Pixijsvue } from '../core/main';
var dataCenterPlugin = {
    install(PixiVue: typeof Pixijsvue , options: any) {
        PixiVue.mixin({
            beforeCreate(this: Pixijsvue) {
                if (this.$options.stone) {
                    let stone = this.$options.stone;
                    this.$stone = stone;
                    this._depList.push({
                        dep: stone.dep,
                        watcher: (id: number, value: string, depName: string) => {
                            stone.addWatcher(value, id, depName, () => {
                                this.$data[value] = this.$computed[value].call(this);
                            })
                        }
                    })
                }
            }
        })
    }
}
export {dataCenterPlugin}